srcdir = ./src/source/
includep = ./src/include/
cc = g++
ccoption = -lpthread -I$(includep)
target = WebServer
targetdebug = debug
src = $(srcdir)*.*
src += $(includep)*.*

$(target):$(src)
	$(cc) -o $@ $(srcdir)*.cpp $(ccoption)

$(targetdebug):$(src)
	$(cc) -D_DEBUG_LOG -D_ERROR_LOG -o $@ $(srcdir)*.cpp $(ccoption)

debuggdb:$(src)
	$(cc) -D_DEBUG_LOG -D_ERROR_LOG -g -rdynamic -o $@ $(srcdir)*.cpp $(ccoption)

clean:
	rm -rf $(target)	$(targetdebug) debuggdb
